#include<stdio.h>

int main (void)
{
	int n,i;
	int A,B,C,D,E;
	int score;
	A=B=C=D=E=0;
	
	printf("Enter n:");
	scanf("%d",&n);
	
	for (i=1;i<=n;i++)
	{
		scanf("%d",&score);
		
		if ((score>=0) && (score<=59))
	{
		E++;
	}
	else if ((score>=60) && (score<=69))
	{
		D++;
	}
	else if ((score>=70) && (score<=79))
	{
		C++;
	}
	else if ((score>=80) && (score<=89))
	{
		B++;
	}
	else 
	{
		A++;
	}
	}
	
	
	
	printf("%d %d %d %d %d",A,B,C,D,E);
	
	return 0;
}
